<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login Page</title>
</head>
<body>
<% String error = (String)request.getAttribute("error"); %>
<% if(error != null){ %>
<p style="color:red;"><%= error %></p>
<% } %>
<form action="login" method="post">
    <label>Username:</label><br/>
    <input type="text" name="username"/><br/><br/>
    <label>Password:</label><br/>
    <input type="password" name="password"/><br/><br/>
    <button type="submit">Login</button>
</form>
</body>
</html>
